package com.dliu.javadesign.behaviour.command;

/**
 * @author yanglei
 * date 2021/4/23 11:53
 */
public interface TVCommand {
    Television television = new Television();
    void execute();
}

class CCTV1Command implements TVCommand {
    @Override
    public void execute() {
        television.playCCTV1();
    }
}
class CCTV2Command implements TVCommand {
    @Override
    public void execute() {
        television.playCCTV2();
    }
}
class CCTV3Command implements TVCommand {
    @Override
    public void execute() {
        television.playCCTV3();
    }
}
class CCTV5Command implements TVCommand {
    @Override
    public void execute() {
        television.playCCTV5();
    }
}
